/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package _util.search;

import _util.beans.FileBean;
import java.io.FileNotFoundException;
import java.util.List;

/**
 *
 * @author adriano
 */
public interface Search {

    public static final int RANGE_KB = 1024;
    public static final int RANGE_MB = 1048576;
    public static final int RANGE_GB = 1073741824;
    
    /**
     * @return Arquivos obtidos apos a busca.
     */
    public List<FileBean> results();

    /**
     * Realiza a busca a partir do no-raiz.
     */
    public void search(FileBean root) throws FileNotFoundException;

    /**
     * Determina o tamanho minimo como criterio de busca.
     * 
     * @param range
     */
    public void setRangeGreaterThan(long range);
}
